<template>
    <div>
        <!-- 查询结果界面 -->
        <blogshow :mothed="mothed" ref="getmothed"></blogshow>
    </div>
</template>

<script>
import blogshow from './blogshow'
export default {
    data () {
      return {
          mothed:"",
      }
    },

    methods: {
        
    },
    mounted(){

        this.mothed=this.$route.params.mothed

    },
    watch: {
            //正确给 mothed 赋值的 方法
        $route: function(newVal,oldVal){
            // console.log(newVal,oldVal)
            console.log("再监测路由了")
            // console.log(newVal.params.mothed)
            this.mothed = newVal.params.mothed;  //newVal即是chartData
            this.$refs.getmothed.getgetTotal()
            this.$refs.getmothed.getpageCon()
        },
    },
    components: {
        blogshow
    },
}
</script>

<style scoped>
</style>